using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Mvc.Ajax;

using zsi.ECommerce.Models;
namespace zsi.ECommerce
{
    public static class SessionHandler
    {
        public static User CurrentUser
        {
            get
            {
                if (HttpContext.Current.Session["User"] == null)
                { return new User();}
                else
                { return (User)HttpContext.Current.Session["User"]; }
            }
            set
            { HttpContext.Current.Session["User"] = value; }

        }

        public static string ClientScreen
        {
            get
            {
                if (HttpContext.Current.Session["ClientScreen"] == null)
                { return ""; }
                else
                { return HttpContext.Current.Session["ClientScreen"].ToString(); }
            }
            set
            { HttpContext.Current.Session["ClientScreen"] = value; }

        }


        public static string BannerImage
        {
            get
            {
                if (HttpContext.Current.Session["BannerImage"] == null)
                { return ""; }
                else
                { return HttpContext.Current.Session["BannerImage"].ToString(); }
            }
            set
            { HttpContext.Current.Session["BannerImage"] = value; }

        }

        public static string FrontImage
        {
            get
            {
                if (HttpContext.Current.Session["FrontImage"] == null)
                { return ""; }
                else
                { return HttpContext.Current.Session["FrontImage"].ToString(); }
            }
            set
            { HttpContext.Current.Session["FrontImage"] = value; }

        }

    }

}
